<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<title>翔天信贷软件管理系统</title>
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/reset.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/main.css" />
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="css/main-ie6.css" /><![endif]-->
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/style.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/mystyle.css" />
<link href="css/grid/grid.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/aa.js"></script>
<script type="text/javascript" src="js/cal.js"></script>
<style>
a{text-decoration: none;}
</style>

</head>
<body>
<html:form action="writeReceipt" method="post">
	<html:hidden property="tableID" styleId="tableID" value="" />
	<html:hidden property="toNotPay"  styleId="toNotPay"/>
	<html:hidden property="callMethod" styleId="callMethod"/>
	
	<%@include		file="/front/head.jsp"%>
		
			<div id="content" class="row">
			<br />
				<div class="column grid_16">
					<table width="100%" border="0" cellspacing="0" cellpadding="0"	style="">
						<tr>
							<td>姓名：<html:text property="userVO.user_name_search" maxlength="10"
									styleId="userVO.user_name_search" styleClass="text-input" />&nbsp;&nbsp;&nbsp;身份证号：<html:text
									property="userVO.user_sn_search"
									styleId="userVO.user_sn_search" styleClass="text-input" maxlength="18" />&nbsp;&nbsp;&nbsp;<html:submit
									property="cz" styleClass="input-submit">查找</html:submit>
							</td>
						</tr>
					</table>

					<br />
				</div>
			</div>
	
	
	
	<aa:zone name="listZone">
	<%@include file="receipt_head.jsp"%>
	
	<table width="100%" class="date" id="dataTable">
		<tr>
			<th>&nbsp;&nbsp;姓名&nbsp;&nbsp;</th>
			<th>&nbsp;&nbsp;身份证&nbsp;&nbsp;</th>
			<th>联系方式</th>
			<th>所属区域</th>
			<th>车型</th>
			<th>车价</th>
			<th>首付款</th>
			<th>贷款额</th>
				<logic:equal value="returnToBxtx" property="callMethod" name="writeReceiptForm">
					<th>保险办理时间</th>
				</logic:equal>
				
				<logic:equal value="returnToYytx" property="callMethod" name="writeReceiptForm">
					<th>营运证办理时间</th>
				</logic:equal>
				
				<logic:equal value="returnToXstx" property="callMethod" name="writeReceiptForm">
					<th>行驶证办理时间</th>
				</logic:equal>

						<th>提交时间</th>
						<th>操作</th>
					
			
			
		</tr>

		<nested:iterate id="user" name="dateReturnList" indexId="dindex">
			<tr>
				<td><nested:write name="user" property="user_name" /></td>
				<td><nested:write name="user" property="user_sn" /></td>
				<td><nested:write name="user" property="user_phone" /></td>
				<td><nested:write name="user" property="area" /></td>
				<td><nested:write name="user" property="car" /></td>
				<td><nested:write name="user" property="jg" /></td>
				<td><nested:write name="user" property="shoufu" /></td>
				<td><nested:write name="user" property="dke" /></td>
				<logic:equal value="returnToBxtx" property="callMethod" name="writeReceiptForm">
					<td><nested:write name="user" property="bxtime" /></td>
				</logic:equal>
				
				<logic:equal value="returnToYytx" property="callMethod" name="writeReceiptForm">
					<td><nested:write name="user" property="yytime" /></td>
				</logic:equal>
				
				<logic:equal value="returnToXstx" property="callMethod" name="writeReceiptForm">
					<td><nested:write name="user" property="xstime" /></td>
				</logic:equal>
				
				 
						<td>
							<nested:write name="user" property="submit_time"/>
						</td>
						<td>
						<a id="tx<%=dindex%>" href=""><input type="button" value="本月不再提醒"  style="width:60px;"/></a>&nbsp;&nbsp;
						<a href="?callMethod=getUserInfo&tableID=<nested:write name="user" property="id"/>">详情</a>
						</td>
							<script>
						<logic:equal value="returnToBxtx" property="callMethod" name="writeReceiptForm">
							$("#tx<%=dindex%>").wBox({title: "结束此保险提醒",requestType:"iframe",iframeWH:{width:350,height:120},target:"writeReceipt.do?callMethod=toCompletetx&tableID=<nested:write name="user" property="id"/>&tx=1"});
						</logic:equal>
						
						<logic:equal value="returnToYytx" property="callMethod" name="writeReceiptForm">
						$("#tx<%=dindex%>").wBox({title: "结束此营运证提醒",requestType:"iframe",iframeWH:{width:350,height:120},target:"writeReceipt.do?callMethod=toCompletetx&tableID=<nested:write name="user" property="id"/>&tx=2"});
						</logic:equal>
						
						<logic:equal value="returnToXstx" property="callMethod" name="writeReceiptForm">
						$("#tx<%=dindex%>").wBox({title: "结束此行驶证提醒",requestType:"iframe",iframeWH:{width:350,height:120},target:"writeReceipt.do?callMethod=toCompletetx&tableID=<nested:write name="user" property="id"/>&tx=3"});
						</logic:equal>
							
							
							</script>
			</tr>
		</nested:iterate>

	</table>
	
	<br></div>
	
	
	</div>
<%@include file="/front/nav.jsp"%>
	</aa:zone>
</html:form>

<script type="text/javascript">
	
function refresh(){
	<logic:equal value="returnToBxtx" property="callMethod" name="writeReceiptForm">
	ajaxAnywhere.submitAJAX("returnToBxtx", "listZone");
</logic:equal>

<logic:equal value="returnToYytx" property="callMethod" name="writeReceiptForm">
ajaxAnywhere.submitAJAX("returnToYytx", "listZone");
</logic:equal>

<logic:equal value="returnToXstx" property="callMethod" name="writeReceiptForm">
ajaxAnywhere.submitAJAX("returnToXstx", "listZone");
</logic:equal>
	
	
	
}
	ajaxAnywhere.showLoadingMessage = function() {}
	
	$(document).ready(function(){
		refresh();
		
	})
	
</script>


</body>
</html>